/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rmiteste;

import java.rmi.RemoteException;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author fosa
 */
public class atualizarserv extends TimerTask {

    public void run() {
        try {
            Servidor.getM().ping();
            System.out.println("atualiazer");
        } catch (RemoteException ex) {
            Logger.getLogger(atualizarserv.class.getName()).log(Level.SEVERE, null, ex);
        } catch (NullPointerException ex) {
            System.out.println("nullo");
        }

    }
}
